package com.sdy.healthcode.biz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.common.model.BizException;
import com.sdy.healthcode.biz.dto.CarCheckInInfoDTO;
import com.sdy.healthcode.biz.dto.CarRecordDTO;
import com.sdy.healthcode.biz.dto.UserActionPost;
import com.sdy.healthcode.biz.model.VehicleRegistration;
import com.sdy.mvc.service.BaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cgj
 * @since 2020-03-16
 */
public interface VehicleRegistrationService extends BaseService<VehicleRegistration> {

    /**
     * 登记外来车辆信息
     * @param carRecordDTO
     * @return
     */
    Boolean createCarRecord(CarRecordDTO carRecordDTO) throws BizException;

    /**
     * 获取车辆进出登记
     * @param action
     * @param name
     * @param phone
     * @param startTime
     * @param endTime
     * @param visitDepartment
     * @param page
     * @return
     */
    List<CarCheckInInfoDTO> getCarCheckInInfo(Integer action, String name, String phone, String startTime, String endTime, String visitDepartment, Page page);


    /**
     * 存储车辆登记记录
     */
    Integer saveRecord(UserActionPost userActionPost) throws BizException;
}
